Optimal. Leaf size=127 \[ \frac {2 (b c-a d)^4 \sqrt {c+d x}}{d^5}-\frac {8 b (b c-a d)^3 (c+d x)^{3/2}}{3 d^5}+\frac {12 b^2 (b c-a d)^2 (c+d x)^{5/2}}{5 d^5}-\frac {8 b^3 (b c-a d) (c+d x)^{7/2}}{7 d^5}+\frac {2 b^4 (c+d x)^{9/2}}{9 d^5} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 127, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.059, Rules used = {45}
\begin {gather*} -\frac {8 b^3 (c+d x)^{7/2} (b c-a d)}{7 d^5}+\frac {12 b^2 (c+d x)^{5/2} (b c-a d)^2}{5 d^5}-\frac {8 b (c+d x)^{3/2} (b c-a d)^3}{3 d^5}+\frac {2 \sqrt {c+d x} (b c-a d)^4}{d^5}+\frac {2 b^4 (c+d x)^{9/2}}{9 d^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rubi steps
\begin {align*} \int \frac {(a+b x)^4}{\sqrt {c+d x}} \, dx &=\int \left (\frac {(-b c+a d)^4}{d^4 \sqrt {c+d x}}-\frac {4 b (b c-a d)^3 \sqrt {c+d x}}{d^4}+\frac {6 b^2 (b c-a d)^2 (c+d x)^{3/2}}{d^4}-\frac {4 b^3 (b c-a d) (c+d x)^{5/2}}{d^4}+\frac {b^4 (c+d x)^{7/2}}{d^4}\right ) \, dx\\ &=\frac {2 (b c-a d)^4 \sqrt {c+d x}}{d^5}-\frac {8 b (b c-a d)^3 (c+d x)^{3/2}}{3 d^5}+\frac {12 b^2 (b c-a d)^2 (c+d x)^{5/2}}{5 d^5}-\frac {8 b^3 (b c-a d) (c+d x)^{7/2}}{7 d^5}+\frac {2 b^4 (c+d x)^{9/2}}{9 d^5}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.08, size = 153, normalized size = 1.20 \begin {gather*} \frac {2 \sqrt {c+d x} \left (315 a^4 d^4+420 a^3 b d^3 (-2 c+d x)+126 a^2 b^2 d^2 \left (8 c^2-4 c d x+3 d^2 x^2\right )+36 a b^3 d \left (-16 c^3+8 c^2 d x-6 c d^2 x^2+5 d^3 x^3\right )+b^4 \left (128 c^4-64 c^3 d x+48 c^2 d^2 x^2-40 c d^3 x^3+35 d^4 x^4\right )\right )}{315 d^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.14, size = 99, normalized size = 0.78
method | result | size |
derivativedivides | \(\frac {\frac {2 b^{4} \left (d x +c \right )^{\frac {9}{2}}}{9}+\frac {8 \left (a d -b c \right ) b^{3} \left (d x +c \right )^{\frac {7}{2}}}{7}+\frac {12 \left (a d -b c \right )^{2} b^{2} \left (d x +c \right )^{\frac {5}{2}}}{5}+\frac {8 \left (a d -b c \right )^{3} b \left (d x +c \right )^{\frac {3}{2}}}{3}+2 \left (a d -b c \right )^{4} \sqrt {d x +c}}{d^{5}}\) | \(99\) |
default | \(\frac {\frac {2 b^{4} \left (d x +c \right )^{\frac {9}{2}}}{9}+\frac {8 \left (a d -b c \right ) b^{3} \left (d x +c \right )^{\frac {7}{2}}}{7}+\frac {12 \left (a d -b c \right )^{2} b^{2} \left (d x +c \right )^{\frac {5}{2}}}{5}+\frac {8 \left (a d -b c \right )^{3} b \left (d x +c \right )^{\frac {3}{2}}}{3}+2 \left (a d -b c \right )^{4} \sqrt {d x +c}}{d^{5}}\) | \(99\) |
gosper | \(\frac {2 \sqrt {d x +c}\, \left (35 d^{4} x^{4} b^{4}+180 a \,b^{3} d^{4} x^{3}-40 b^{4} c \,d^{3} x^{3}+378 a^{2} b^{2} d^{4} x^{2}-216 a \,b^{3} c \,d^{3} x^{2}+48 b^{4} c^{2} d^{2} x^{2}+420 a^{3} b \,d^{4} x -504 a^{2} b^{2} c \,d^{3} x +288 a \,b^{3} c^{2} d^{2} x -64 b^{4} c^{3} d x +315 a^{4} d^{4}-840 a^{3} b c \,d^{3}+1008 a^{2} b^{2} c^{2} d^{2}-576 a \,b^{3} c^{3} d +128 b^{4} c^{4}\right )}{315 d^{5}}\) | \(186\) |
trager | \(\frac {2 \sqrt {d x +c}\, \left (35 d^{4} x^{4} b^{4}+180 a \,b^{3} d^{4} x^{3}-40 b^{4} c \,d^{3} x^{3}+378 a^{2} b^{2} d^{4} x^{2}-216 a \,b^{3} c \,d^{3} x^{2}+48 b^{4} c^{2} d^{2} x^{2}+420 a^{3} b \,d^{4} x -504 a^{2} b^{2} c \,d^{3} x +288 a \,b^{3} c^{2} d^{2} x -64 b^{4} c^{3} d x +315 a^{4} d^{4}-840 a^{3} b c \,d^{3}+1008 a^{2} b^{2} c^{2} d^{2}-576 a \,b^{3} c^{3} d +128 b^{4} c^{4}\right )}{315 d^{5}}\) | \(186\) |
risch | \(\frac {2 \sqrt {d x +c}\, \left (35 d^{4} x^{4} b^{4}+180 a \,b^{3} d^{4} x^{3}-40 b^{4} c \,d^{3} x^{3}+378 a^{2} b^{2} d^{4} x^{2}-216 a \,b^{3} c \,d^{3} x^{2}+48 b^{4} c^{2} d^{2} x^{2}+420 a^{3} b \,d^{4} x -504 a^{2} b^{2} c \,d^{3} x +288 a \,b^{3} c^{2} d^{2} x -64 b^{4} c^{3} d x +315 a^{4} d^{4}-840 a^{3} b c \,d^{3}+1008 a^{2} b^{2} c^{2} d^{2}-576 a \,b^{3} c^{3} d +128 b^{4} c^{4}\right )}{315 d^{5}}\) | \(186\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 204, normalized size = 1.61 \begin {gather*} \frac {2 \, {\left (315 \, \sqrt {d x + c} a^{4} + \frac {420 \, {\left ({\left (d x + c\right )}^{\frac {3}{2}} - 3 \, \sqrt {d x + c} c\right )} a^{3} b}{d} + \frac {126 \, {\left (3 \, {\left (d x + c\right )}^{\frac {5}{2}} - 10 \, {\left (d x + c\right )}^{\frac {3}{2}} c + 15 \, \sqrt {d x + c} c^{2}\right )} a^{2} b^{2}}{d^{2}} + \frac {36 \, {\left (5 \, {\left (d x + c\right )}^{\frac {7}{2}} - 21 \, {\left (d x + c\right )}^{\frac {5}{2}} c + 35 \, {\left (d x + c\right )}^{\frac {3}{2}} c^{2} - 35 \, \sqrt {d x + c} c^{3}\right )} a b^{3}}{d^{3}} + \frac {{\left (35 \, {\left (d x + c\right )}^{\frac {9}{2}} - 180 \, {\left (d x + c\right )}^{\frac {7}{2}} c + 378 \, {\left (d x + c\right )}^{\frac {5}{2}} c^{2} - 420 \, {\left (d x + c\right )}^{\frac {3}{2}} c^{3} + 315 \, \sqrt {d x + c} c^{4}\right )} b^{4}}{d^{4}}\right )}}{315 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.03, size = 182, normalized size = 1.43 \begin {gather*} \frac {2 \, {\left (35 \, b^{4} d^{4} x^{4} + 128 \, b^{4} c^{4} - 576 \, a b^{3} c^{3} d + 1008 \, a^{2} b^{2} c^{2} d^{2} - 840 \, a^{3} b c d^{3} + 315 \, a^{4} d^{4} - 20 \, {\left (2 \, b^{4} c d^{3} - 9 \, a b^{3} d^{4}\right )} x^{3} + 6 \, {\left (8 \, b^{4} c^{2} d^{2} - 36 \, a b^{3} c d^{3} + 63 \, a^{2} b^{2} d^{4}\right )} x^{2} - 4 \, {\left (16 \, b^{4} c^{3} d - 72 \, a b^{3} c^{2} d^{2} + 126 \, a^{2} b^{2} c d^{3} - 105 \, a^{3} b d^{4}\right )} x\right )} \sqrt {d x + c}}{315 \, d^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 532 vs.
\(2 (117) = 234\).
time = 27.18, size = 532, normalized size = 4.19 \begin {gather*} \begin {cases} \frac {- \frac {2 a^{4} c}{\sqrt {c + d x}} - 2 a^{4} \left (- \frac {c}{\sqrt {c + d x}} - \sqrt {c + d x}\right ) - \frac {8 a^{3} b c \left (- \frac {c}{\sqrt {c + d x}} - \sqrt {c + d x}\right )}{d} - \frac {8 a^{3} b \left (\frac {c^{2}}{\sqrt {c + d x}} + 2 c \sqrt {c + d x} - \frac {\left (c + d x\right )^{\frac {3}{2}}}{3}\right )}{d} - \frac {12 a^{2} b^{2} c \left (\frac {c^{2}}{\sqrt {c + d x}} + 2 c \sqrt {c + d x} - \frac {\left (c + d x\right )^{\frac {3}{2}}}{3}\right )}{d^{2}} - \frac {12 a^{2} b^{2} \left (- \frac {c^{3}}{\sqrt {c + d x}} - 3 c^{2} \sqrt {c + d x} + c \left (c + d x\right )^{\frac {3}{2}} - \frac {\left (c + d x\right )^{\frac {5}{2}}}{5}\right )}{d^{2}} - \frac {8 a b^{3} c \left (- \frac {c^{3}}{\sqrt {c + d x}} - 3 c^{2} \sqrt {c + d x} + c \left (c + d x\right )^{\frac {3}{2}} - \frac {\left (c + d x\right )^{\frac {5}{2}}}{5}\right )}{d^{3}} - \frac {8 a b^{3} \left (\frac {c^{4}}{\sqrt {c + d x}} + 4 c^{3} \sqrt {c + d x} - 2 c^{2} \left (c + d x\right )^{\frac {3}{2}} + \frac {4 c \left (c + d x\right )^{\frac {5}{2}}}{5} - \frac {\left (c + d x\right )^{\frac {7}{2}}}{7}\right )}{d^{3}} - \frac {2 b^{4} c \left (\frac {c^{4}}{\sqrt {c + d x}} + 4 c^{3} \sqrt {c + d x} - 2 c^{2} \left (c + d x\right )^{\frac {3}{2}} + \frac {4 c \left (c + d x\right )^{\frac {5}{2}}}{5} - \frac {\left (c + d x\right )^{\frac {7}{2}}}{7}\right )}{d^{4}} - \frac {2 b^{4} \left (- \frac {c^{5}}{\sqrt {c + d x}} - 5 c^{4} \sqrt {c + d x} + \frac {10 c^{3} \left (c + d x\right )^{\frac {3}{2}}}{3} - 2 c^{2} \left (c + d x\right )^{\frac {5}{2}} + \frac {5 c \left (c + d x\right )^{\frac {7}{2}}}{7} - \frac {\left (c + d x\right )^{\frac {9}{2}}}{9}\right )}{d^{4}}}{d} & \text {for}\: d \neq 0 \\\frac {\begin {cases} a^{4} x & \text {for}\: b = 0 \\\frac {\left (a + b x\right )^{5}}{5 b} & \text {otherwise} \end {cases}}{\sqrt {c}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.22, size = 204, normalized size = 1.61 \begin {gather*} \frac {2 \, {\left (315 \, \sqrt {d x + c} a^{4} + \frac {420 \, {\left ({\left (d x + c\right )}^{\frac {3}{2}} - 3 \, \sqrt {d x + c} c\right )} a^{3} b}{d} + \frac {126 \, {\left (3 \, {\left (d x + c\right )}^{\frac {5}{2}} - 10 \, {\left (d x + c\right )}^{\frac {3}{2}} c + 15 \, \sqrt {d x + c} c^{2}\right )} a^{2} b^{2}}{d^{2}} + \frac {36 \, {\left (5 \, {\left (d x + c\right )}^{\frac {7}{2}} - 21 \, {\left (d x + c\right )}^{\frac {5}{2}} c + 35 \, {\left (d x + c\right )}^{\frac {3}{2}} c^{2} - 35 \, \sqrt {d x + c} c^{3}\right )} a b^{3}}{d^{3}} + \frac {{\left (35 \, {\left (d x + c\right )}^{\frac {9}{2}} - 180 \, {\left (d x + c\right )}^{\frac {7}{2}} c + 378 \, {\left (d x + c\right )}^{\frac {5}{2}} c^{2} - 420 \, {\left (d x + c\right )}^{\frac {3}{2}} c^{3} + 315 \, \sqrt {d x + c} c^{4}\right )} b^{4}}{d^{4}}\right )}}{315 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.24, size = 112, normalized size = 0.88 \begin {gather*} \frac {2\,b^4\,{\left (c+d\,x\right )}^{9/2}}{9\,d^5}-\frac {\left (8\,b^4\,c-8\,a\,b^3\,d\right )\,{\left (c+d\,x\right )}^{7/2}}{7\,d^5}+\frac {2\,{\left (a\,d-b\,c\right )}^4\,\sqrt {c+d\,x}}{d^5}+\frac {12\,b^2\,{\left (a\,d-b\,c\right )}^2\,{\left (c+d\,x\right )}^{5/2}}{5\,d^5}+\frac {8\,b\,{\left (a\,d-b\,c\right )}^3\,{\left (c+d\,x\right )}^{3/2}}{3\,d^5} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________